<?php

$val = $_GET['val'];
$tmp_val = $val;
$date_str = date("Ymd");
$time_str = date('H:m');

// === Add to database ===
// example: http://shredcat.zxq.net/my_php/add_wat_value_no_succeed.php?val=0

$str = 'http://shredcat.zxq.net/my_php/add_wat_value_no_succeed.php?val=' . $tmp_val;
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, $str); 
curl_setopt($ch, CURLOPT_HEADER, 1); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
$data = curl_exec($ch); 
curl_close($ch); 

echo "[OK]";

?>
